/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

/**
 *
 * @author mehdi
 */
@Entity
public class AssessmentQ implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
   
    private Long asQId;
   
   private int note;
   
   private String Cassq;
   
   private String Uassq;
   
   private String Dassq;
   @ManyToOne
   private Module modu;

    public AssessmentQ() {
    }

    public Module getModu() {
        return modu;
    }

    public void setModu(Module modu) {
        this.modu = modu;
    }
   
   

    public String getCassq() {
        return Cassq;
    }

    public void setCassq(String Cassq) {
        this.Cassq = Cassq;
    }

    public String getDassq() {
        return Dassq;
    }

    public void setDassq(String Dassq) {
        this.Dassq = Dassq;
    }

    public String getUassq() {
        return Uassq;
    }

    public void setUassq(String Uassq) {
        this.Uassq = Uassq;
    }

    public int getNote() {
        return note;
    }

    public void setNote(int note) {
        this.note = note;
    }
   
   

    public Long getId() {
        return asQId;
    }

    public void setId(Long id) {
        this.asQId = id;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (asQId != null ? asQId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof AssessmentQ)) {
            return false;
        }
        AssessmentQ other = (AssessmentQ) object;
        if ((this.asQId == null && other.asQId != null) || (this.asQId != null && !this.asQId.equals(other.asQId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "model.AssessmentQ[ id=" + asQId + " ]";
    }
    
}
